#include "home.h"
#include "ui_home.h"

home::home(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::home)
{
    ui->setupUi(this);
}

home::~home()
{
    delete ui;
}

void home::on_count_btn_clicked()
{
    if(f4 == nullptr)
    {
        f4 = new count(this);
        this->hide();
        f4->show();
    }
    else
    {
        this->hide();
        f4->show();
    }
}

void home::on_file_btn_clicked()
{
    if(f5 == nullptr)
    {
        f5 = new file(this);
        this->hide();
        f5->show();
    }
    else
    {
        this->hide();
        f5->show();
    }
}

void home::on_video_btn_clicked()
{
    if(f3 == nullptr)
    {
        f3 = new video(this);
        this->hide();
        f3->show();
    }
    else
    {
        this->hide();
        f3->show();
    }
}
